package modelLayer;

import java.io.Serializable;

@SuppressWarnings("serial")
public abstract class Person implements Serializable{
	
	private int id; 
	private String fname;
	private String lname;
	private String address;
	private String postalCode;
	private String city;
	private String phoneNo;
	private String mobileNo;	
	private String contactPerson;
	private String contactPhone;
	private String contactMobile;
	private String type;
	
	
	
	public Person(int id, String fname, String lname, String address, String postalCode, String city, String phoneNo, String mobileNo,
			String contactPerson, String contactPhone, String contactMobile)
	{
		this.id = id;
		this.fname = fname;
		this.lname = lname;
		this.address = address;
		this.postalCode = postalCode;
		this.city = city;
		this.phoneNo = phoneNo;
		this.mobileNo = mobileNo;
		this.contactPerson = contactPerson;
		this.contactPhone = contactPhone;
		this.setContactMobile(contactMobile);
	}
	
	public Person(){}



	public int getId() {
		return id;
	}



	public void setId(int id) {
		this.id = id;
	}



	



	public String getAddress() {
		return address;
	}



	public void setAddress(String address) {
		this.address = address;
	}



	public String getPostalCode() {
		return postalCode;
	}



	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}



	public String getCity() {
		return city;
	}



	public void setCity(String city) {
		this.city = city;
	}



	public String getPhoneNo() {
		return phoneNo;
	}



	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}



	public String getMobileNo() {
		return mobileNo;
	}



	public void setMobileNo(String mobileNo) {
		this.mobileNo = mobileNo;
	}



	public String getContactPerson() {
		return contactPerson;
	}



	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}



	public String getContactPhone() {
		return contactPhone;
	}



	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}	
	

	public String getLname() {
		return lname;
	}

	public void setLname(String lname) {
		this.lname = lname;
	}

	public String getFname() {
		return fname;
	}

	public void setFname(String fname) {
		this.fname = fname;
	}
	
	
	public String getContactMobile() {
		return contactMobile;
	}

	public void setContactMobile(String contactMobile) {
		this.contactMobile = contactMobile;
	}
	
	
	public abstract String getInitial();	
	public abstract void setInitial(String initial);
	
	public String gettype(){
		return this.getClass().getName().substring(11);
		
	}
	
	public void setType(){
		this.type = gettype();
	}
	
	public abstract Store getStore();
	public abstract void setStore(Store store);
		
	
	

	
}
